x86/cpuid: Drop a guests cached x86 family and model information
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 12 Jan 2017 11:45:10 +0000 (11:45 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 18 Jan 2017 12:45:52 +0000 (12:45 +0000)
commit9841eb71ea8740195775cc8a91101831938626f1
tree5b748c61eb168ae9a5d2252d69c0a7b3d84d78de
parent984cf6c5223d07ac10a53b25fa85356f6f98d9fb
x86/cpuid: Drop a guests cached x86 family and model information

The model information isn't used at all, and the family information is only
used once.

Make get_cpu_family() a static inline (as it is just basic calculation, and
the function call is probably more expensive than the function itself) and
rearange the logic to avoid calculating model entirely if the caller doesn't
want it.

Calculate a guests family only when necessary in hvm_select_ioreq_server().

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/cpu/common.c
xen/arch/x86/domain.c
xen/arch/x86/domctl.c
xen/arch/x86/hvm/ioreq.c
xen/include/asm-x86/cpuid.h
xen/include/asm-x86/domain.h
xen/include/asm-x86/processor.h